package com.ethan;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController // 注解表示这是一个控制器是请求处理类
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("hello---------");
        return "hello";
    }
}
